package com.starlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starlink.common.PageInfoTwo;
import com.starlink.common.annotation.client.weixin.UserPurchaseRes;
import com.starlink.model.domain.SchoolbagDO;
import com.starlink.model.request.SchoolbagRequest;
import com.starlink.model.request.other.StarOrderSubmitRequest;
import com.starlink.model.request.schoolbag.SchoolbagOrderSubmitRequest;
import com.starlink.model.vo.SchoolbagVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface SchoolbagService extends IService<SchoolbagDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    SchoolbagVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfoTwo<SchoolbagVO> pageQuery(SchoolbagRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<SchoolbagVO> listQuery(SchoolbagRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(SchoolbagRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(SchoolbagRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean deleteByIds(String ids);

    /**
     * 检查书包是否审核通过
     * @param id
     * @return
     */
    Boolean validAuditStatus(Long id);
}
